home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Classes / FindManager / ReadMe < prev    next >
Text File  |  1995-06-12  |  2KB  |  21 lines

  1. Find Manager
  2.  
  3. copyright: NOT! Feel free to use any of the source to Find Manager.
  4.  
  5. David Holscher
  6. Box #727
  7. Rose-Hulman Institute of Technology
  8. Terre Haute, IN 47803 
  9.  
  10. e-mail: holschdm@next-work.rose-hulman.edu
  11.  
  12. Just what we've all been waiting for. The folks at NeXT we kind enough to provide us with a generic spelling checker built into all of the Text objects, but they left out the all usefull Find Panel. I've tried to alleviate some of the problem here by writing a Find Manager which is a subclass of Object. Using the Find Manager gets you a find interface almost exactly like found in the Edit application. I've used a slightly modified GNU regular expression matching routine to match regular expressions. Unfortunalty I can't get it to match \n correctly or \t. This is somewhat disturbing, but everything else works as in Edit. I've also included the Line and Character range panel like found in Edit.
  13.  
  14. Putting this object into your application is fairly simple. Just add the FindManager.[hm], regex.[hc], and FindManager.nib files to your project. Drag the FindManager.h file into your .h suitcase and instantiate it. Drag the find sub-menu item into your main menu (probably under Edit). Enable all of the menu items and begin connecting them to the proper methods in the FindManager instance. If you want to use the Line Range you need to add another menu item and connect it to the orderFrontCountPanel: method. The FindTester.nib file provides an example of how to hook up the object.
  15.  
  16. Once set up the Find Manager will work with an Text object or any subclass of Text that is the current first responder.
  17.  
  18. One more thing - you should be able to get at the instance you have created by calling [FindManager new] at any time. You should only be able to instantiate one Find Manager.
  19.  
  20. If you have any questions, comments, wants, or gripes feel free to send them to me e-mail.
  21.